package com.bizfx.component.controls
{
	import mx.controls.TextInput;

	public class SearchBarNumericValueInput extends TextInput implements ISearchBarValueInput
	{		
		public function SearchBarNumericValueInput()
		{
			this.restrict = "0-9\.";
		}
		
		public function get inputValue():Object {
			return Number(super.text);
		}
		
		public function set inputValue(value:Object):void {
			super.text = Number(value).toString();
		}
		
		public function get inputValueString():String {
			return super.text.toString();
		}
	}
}